package com.self.smallma.myblogweb.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.self.smallma.myblogweb.common.utils.PageUtils;
import com.self.smallma.myblogweb.common.utils.Query;

import com.self.smallma.myblogweb.dao.BlogTypeRelationDao;
import com.self.smallma.myblogweb.entity.BlogTypeRelationEntity;
import com.self.smallma.myblogweb.service.BlogTypeRelationService;


@Service("blogTypeRelationService")
public class BlogTypeRelationServiceImpl extends ServiceImpl<BlogTypeRelationDao, BlogTypeRelationEntity> implements BlogTypeRelationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BlogTypeRelationEntity> page = this.page(
                new Query<BlogTypeRelationEntity>().getPage(params),
                new QueryWrapper<BlogTypeRelationEntity>()
        );

        return new PageUtils(page);
    }

}